﻿using System;
using System.Drawing;
using System.Windows.Forms;
using System.Collections.Generic;

namespace TIFPDFCounter
{
	public partial class PagePerFileViewer : Form
	{
		public PagePerFileViewer()
		{
			InitializeComponent();
		}
		
		public PagePerFileViewer(List<Size> pages)
		{
			InitializeComponent();
			
			int counter = 1;
			foreach (var pg in pages)
			{
				dgvPages.Rows.Add(counter++, Math.Round(pg.Width.Nominal, 2) + " \u00d7 " + Math.Round(pg.Height.Nominal, 2));
			}
		}
		void PagePerFileViewerMouseLeave(object sender, System.EventArgs e)
		{
			Close();
		}
	}
}
